#列表
list1= ['Google', 'Runoob', 1997, 2000]
list2= [1, 2, 3, 4, 5 ]
list3= ["a", "b", "c", "d"]
list4= ['red', 'green', 'blue', 'yellow', 'white', 'black']

list = ['red', 'green', 'blue', 'yellow', 'white', 'black']
print( list[0] )
print( list[1] )
print( list[2] )

list1.append('Baidu')
print ("更新后的列表 : ",list1)

print ("原始列表 : ", list)
del list[2]
print ("删除第三个元素 : ", list)

print(len([1, 2, 3]))
print([1, 2, 3] + [4, 5, 6])
print(['Hi!'] * 4)
print(3 in [1, 2, 3])
for x in [1, 2, 3]: print(x, end=" ")

#列表可以嵌套
